
<h2>Upload files using Ajax and multipart/form-data</h2>
<div ng-app="myApp">
    <div ng-controller="myCtrl">
        <div>
            <div>
                <label for="type">type</label>
                <div>
                    <input type="text" name="associateType" ng-model="associateType" />
                </div>
            </div>
            <br />
            <div>
                <label for="files">files</label>
                <div>
                    <input name="files" type="file" file-model="files" />
                </div>
            </div>
            <br />
            <div>
                <button ng-click="upload()">开始上传</button>
            </div>
            <br />
            <div ng-show="showUploadStatus">
                <b><span ng-bind="uploadStatus"></span></b>
            </div>
        </div>
    </div>
</div>

@section scripts{
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
    <script src="~/js/app.js"></script>
}
